package cn.jiyun.entity.day12;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author sjt
 * @Date 2023/8/9 11:21
 * @PackageName: cn.jiyun.entity.day12.Contest
 */
@TableName("t_contest")
@Data
public class Contest {
    @TableId(value = "cid",type = IdType.AUTO)
    private Integer cid;
    private String cname;
    private Integer tid;
    private String tag;
    private Integer num;
    private Integer numceiling;
    private String plan;
    private String part;
    private String status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date startdate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date enddate;

    private Integer sortId;
    private String imgUrl;
    private String amethod;
    private String smethod;
    private String info1;
}
